.class final Lnet/tsapps/topdeals/al;
.super Ljava/lang/Object;

# interfaces
.implements Landroid/view/View$OnClickListener;


# instance fields
.field private synthetic a:Lnet/tsapps/topdeals/PreferencesActivity;


# direct methods
.method constructor <init>(Lnet/tsapps/topdeals/PreferencesActivity;)V
    .locals 0

    iput-object p1, p0, Lnet/tsapps/topdeals/al;->a:Lnet/tsapps/topdeals/PreferencesActivity;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public final onClick(Landroid/view/View;)V
    .locals 7

    const-wide/16 v5, 0x0

    const/4 v4, 0x1

    const/4 v3, 0x0

    iget-object v0, p0, Lnet/tsapps/topdeals/al;->a:Lnet/tsapps/topdeals/PreferencesActivity;

    invoke-static {v0}, Lnet/tsapps/topdeals/PreferencesActivity;->a(Lnet/tsapps/topdeals/PreferencesActivity;)Lnet/tsapps/topdeals/h/a;

    move-result-object v0

    invoke-virtual {v0}, Lnet/tsapps/topdeals/h/a;->l()Ljava/lang/Long;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Long;->longValue()J

    move-result-wide v0

    cmp-long v0, v0, v5

    if-nez v0, :cond_0

    iget-object v0, p0, Lnet/tsapps/topdeals/al;->a:Lnet/tsapps/topdeals/PreferencesActivity;

    invoke-static {v0}, Lnet/tsapps/topdeals/PreferencesActivity;->a(Lnet/tsapps/topdeals/PreferencesActivity;)Lnet/tsapps/topdeals/h/a;

    move-result-object v0

    iget-object v1, p0, Lnet/tsapps/topdeals/al;->a:Lnet/tsapps/topdeals/PreferencesActivity;

    const v2, 0x7f0b0012

    invoke-virtual {v1, v2}, Lnet/tsapps/topdeals/PreferencesActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lnet/tsapps/topdeals/h/a;->d(Ljava/lang/String;)V

    :goto_0
    iget-object v0, p0, Lnet/tsapps/topdeals/al;->a:Lnet/tsapps/topdeals/PreferencesActivity;

    invoke-static {v0}, Lnet/tsapps/topdeals/PreferencesActivity;->g(Lnet/tsapps/topdeals/PreferencesActivity;)Landroid/widget/LinearLayout;

    move-result-object v0

    invoke-virtual {v0, v4}, Landroid/widget/LinearLayout;->getChildAt(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iget-object v1, p0, Lnet/tsapps/topdeals/al;->a:Lnet/tsapps/topdeals/PreferencesActivity;

    invoke-static {v1}, Lnet/tsapps/topdeals/PreferencesActivity;->a(Lnet/tsapps/topdeals/PreferencesActivity;)Lnet/tsapps/topdeals/h/a;

    move-result-object v1

    invoke-virtual {v1}, Lnet/tsapps/topdeals/h/a;->l()Ljava/lang/Long;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/Long;->longValue()J

    move-result-wide v1

    cmp-long v1, v1, v5

    if-nez v1, :cond_1

    const v1, 0x7f020036

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageResource(I)V

    iget-object v0, p0, Lnet/tsapps/topdeals/al;->a:Lnet/tsapps/topdeals/PreferencesActivity;

    invoke-static {v0}, Lnet/tsapps/topdeals/PreferencesActivity;->h(Lnet/tsapps/topdeals/PreferencesActivity;)Landroid/widget/LinearLayout;

    move-result-object v0

    invoke-virtual {v0, v3}, Landroid/widget/LinearLayout;->setClickable(Z)V

    :goto_1
    iget-object v0, p0, Lnet/tsapps/topdeals/al;->a:Lnet/tsapps/topdeals/PreferencesActivity;

    invoke-static {v0, v3}, Lnet/tsapps/topdeals/PreferencesActivity;->a(Lnet/tsapps/topdeals/PreferencesActivity;Z)V

    iget-object v0, p0, Lnet/tsapps/topdeals/al;->a:Lnet/tsapps/topdeals/PreferencesActivity;

    invoke-static {v0}, Lnet/tsapps/topdeals/PreferencesActivity;->i(Lnet/tsapps/topdeals/PreferencesActivity;)Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lnet/tsapps/topdeals/notificationservice/a;->a(Landroid/content/Context;)V

    return-void

    :cond_0
    iget-object v0, p0, Lnet/tsapps/topdeals/al;->a:Lnet/tsapps/topdeals/PreferencesActivity;

    invoke-static {v0}, Lnet/tsapps/topdeals/PreferencesActivity;->a(Lnet/tsapps/topdeals/PreferencesActivity;)Lnet/tsapps/topdeals/h/a;

    move-result-object v0

    const-string v1, "0"

    invoke-virtual {v0, v1}, Lnet/tsapps/topdeals/h/a;->d(Ljava/lang/String;)V

    goto :goto_0

    :cond_1
    const v1, 0x7f020037

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageResource(I)V

    iget-object v0, p0, Lnet/tsapps/topdeals/al;->a:Lnet/tsapps/topdeals/PreferencesActivity;

    invoke-static {v0}, Lnet/tsapps/topdeals/PreferencesActivity;->h(Lnet/tsapps/topdeals/PreferencesActivity;)Landroid/widget/LinearLayout;

    move-result-object v0

    invoke-virtual {v0, v4}, Landroid/widget/LinearLayout;->setClickable(Z)V

    goto :goto_1
.end method
